package com.dcd.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
/*视频表*/
public class Video implements Serializable {

    private int video_id;//视频id
    private int video_car_model_fk_id;//车型id
    private int video_program_fk_id;//所属节目id
    private int video_release_user_fk_id;//发布用户id
    private int video_type_fk_id;//视频类型id
    private String video_images_url;//展示图片url
    private String video_url;//视频url
    private int video_broadcast_count;//播放次数
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date video_upload_date;//上传日期
    private String video_introduction;//视频简介
    private BigDecimal video_duration;//视频时长

    private Program program;//节目对象
    private User user;//用户对象

}
